import Vue from 'vue'
import ElementUI from 'element-ui'              //ElementUI组件库
import 'element-ui/lib/theme-default/index.css' //ElementUI组件库样式
import router from './router'
import store from './store'
import * as filters from './filters'            //全局filter
import './permission'                           //权限
import app from './app'

import './styles/fonts.scss'
import './icons'

Vue.use(ElementUI)

// 注册全局过滤器
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
})

Vue.config.productionTip = false
new Vue({
    el: '#app',
    router,
    store,
    template: '<app/>',
    components: {app}
})